<?php
    $admin_id = $this->session->userdata('adminid');
?>
<div>
    <?php echo  form_open(site_url('admin/change_pass').'/'.$admin_id);?>
    <?php
    echo validation_errors();
    ?>
    <div id="viewactu" align="center">
        <div align="center" id="titre_viewactu" >CHANGEMENT MOT DE PASSE</div>
        <table id="formactu" cellpadding="10px" cellspacing="0">
            <tr> <td>Ancien mot de passe</td> <td><input type="password" name="apass"/></td> </tr>
            <tr> <td>Nouveau mot de passe</td> <td><input type="password" name="npass" /></td> </tr>
            <tr> <td>Confirmation nouveau mot de passe</td> <td><input type="password" name="confirm_npass" /></td> </tr>
            <tr> <td></td> <td><input value="Change pass" type="submit" name="submit"/></td> </tr>
        </table>
    </div>
    <?php echo form_close() ?>
    <?php if(isset ($erreur)){?>
    <span style="color: red"><?php     echo $erreur;?></span>
    <?php }?>
</div>